package dto

import (
	"vrcm/src/vrcm/common/dto"
	common "vrcm/src/vrcm/common/models"
)

type AuditVideoGetPageReq struct {
	dto.Pagination `search:"-"`
	TenantId       string `json:"tenant_id"  search:"type:exact;column:tenant_id;table:audit_video"`
	EventId        int    `json:"event_id"search:"type:exact;column:event_id;table:audit_video"`
	MemberName     string `json:"member_name"  search:"type:exact;column:member_name;table:audit_video"`
}

func (m *AuditVideoGetPageReq) GetNeedSearch() interface{} {
	return *m
}

type AuditVideoGetReq struct {
	Id       int `json:"id"`
	MemberId int `json:"member_id" comment:"成员id"`
	EventId  int `json:"event_id" gorm:"type:bigint;comment:活动id"`
}

type AuditVideoInsertReq struct {
	Id         int    `json:"-" comment:""` //
	TenantId   string `form:"tenant_id" comment:"租户"`
	MemberId   int    `form:"member_id" comment:"成员id"`
	EventId    int    `form:"event_id" gorm:"type:bigint;comment:活动id"`
	ProgramId  string `form:"program_id" gorm:"varchar(50);comment:节目单id"`
	AuditImg   string `form:"audit_img" comment:"审核图片"`
	AuditTime  int    `form:"audit_time" comment:"审核时间"`
	SignImg    []byte `json:"sign_img" comment:"签名图片"`
	MemberName string `form:"member_name"  comment:"成员名"`
	AuditTag   string `form:"audit_tag" gorm:"type:varchar(200);comment:审核标签"`
	common.ControlBy
}

type AuditVideoUpdateReq struct {
	Id         int    `form:"id" comment:""` //
	TenantId   string `form:"tenant_id" comment:"租户"`
	MemberId   int    `form:"member_id" comment:"成员id"`
	EventId    int    `form:"event_id" gorm:"type:bigint;comment:活动id"`
	ProgramId  string `form:"program_id" gorm:"varchar(50);comment:节目单id"`
	AuditImg   string `form:"audit_img" comment:"审核图片"`
	AuditTime  int    `form:"audit_time" comment:"审核时间"`
	SignImg    []byte `json:"sign_img" gorm:"type:mediumblob;comment:签名图片数据"`
	MemberName string `form:"member_name"  comment:"成员名"`
	AuditTag   string `form:"audit_tag" gorm:"type:varchar(200);comment:审核标签"`
	common.ControlBy
}

type AuditVideoDeleteReq struct {
	Id int `json:"id"`
}

type ShareAuditVideoReq struct {
	Id int `json:"id"`
}
